import request from '@/utils/request'

// 查询产品运行指标列表
export function listFundProductIndicator(query) {
  return request({
    url: '/operation/fundProductIndicator/list',
    method: 'get',
    params: query
  })
}

// 查询产品运行指标详细
export function getFundProductIndicator(id) {
  return request({
    url: '/operation/fundProductIndicator/' + id,
    method: 'get'
  })
}

// 保存产品运行指标
export function saveFundProductIndicator(data) {
  return request({
    url: '/operation/fundProductIndicator/save',
    method: 'post',
    data: data
  })
}

// 删除产品运行指标
export function delFundProductIndicator(id) {
  return request({
    url: '/operation/fundProductIndicator/' + id,
    method: 'delete'
  })
}

// 导出产品运行指标
export function exportFundProductIndicator(query) {
  return request({
    url: '/operation/fundProductIndicator/export',
    method: 'get',
    params: query
  })
}

// 根据监测ID获取指标信息
export function getByMonitorId(monitorId) {
  return request({
    url: '/operation/fundProductIndicator/getByMonitorId/' + monitorId,
    method: 'get'
  })
}

// 新建报告期. 带入的牧人数据. 产品运行检测表
export function getDefaultData(fundId) {
  return request({
    url: '/operation/fundProductIndicator/getDefaultData/' + fundId,
    method: 'get'
  })
}
